package xa.woniu.entity;

import java.util.ArrayList;
import java.util.List;

public class BillExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public BillExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBidIsNull() {
            addCriterion("bid is null");
            return (Criteria) this;
        }

        public Criteria andBidIsNotNull() {
            addCriterion("bid is not null");
            return (Criteria) this;
        }

        public Criteria andBidEqualTo(Integer value) {
            addCriterion("bid =", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotEqualTo(Integer value) {
            addCriterion("bid <>", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidGreaterThan(Integer value) {
            addCriterion("bid >", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bid >=", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidLessThan(Integer value) {
            addCriterion("bid <", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidLessThanOrEqualTo(Integer value) {
            addCriterion("bid <=", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidIn(List<Integer> values) {
            addCriterion("bid in", values, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotIn(List<Integer> values) {
            addCriterion("bid not in", values, "bid");
            return (Criteria) this;
        }

        public Criteria andBidBetween(Integer value1, Integer value2) {
            addCriterion("bid between", value1, value2, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotBetween(Integer value1, Integer value2) {
            addCriterion("bid not between", value1, value2, "bid");
            return (Criteria) this;
        }

        public Criteria andBuidIsNull() {
            addCriterion("buid is null");
            return (Criteria) this;
        }

        public Criteria andBuidIsNotNull() {
            addCriterion("buid is not null");
            return (Criteria) this;
        }

        public Criteria andBuidEqualTo(Integer value) {
            addCriterion("buid =", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidNotEqualTo(Integer value) {
            addCriterion("buid <>", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidGreaterThan(Integer value) {
            addCriterion("buid >", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("buid >=", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidLessThan(Integer value) {
            addCriterion("buid <", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidLessThanOrEqualTo(Integer value) {
            addCriterion("buid <=", value, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidIn(List<Integer> values) {
            addCriterion("buid in", values, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidNotIn(List<Integer> values) {
            addCriterion("buid not in", values, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidBetween(Integer value1, Integer value2) {
            addCriterion("buid between", value1, value2, "buid");
            return (Criteria) this;
        }

        public Criteria andBuidNotBetween(Integer value1, Integer value2) {
            addCriterion("buid not between", value1, value2, "buid");
            return (Criteria) this;
        }

        public Criteria andBflagIsNull() {
            addCriterion("bflag is null");
            return (Criteria) this;
        }

        public Criteria andBflagIsNotNull() {
            addCriterion("bflag is not null");
            return (Criteria) this;
        }

        public Criteria andBflagEqualTo(Integer value) {
            addCriterion("bflag =", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagNotEqualTo(Integer value) {
            addCriterion("bflag <>", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagGreaterThan(Integer value) {
            addCriterion("bflag >", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagGreaterThanOrEqualTo(Integer value) {
            addCriterion("bflag >=", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagLessThan(Integer value) {
            addCriterion("bflag <", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagLessThanOrEqualTo(Integer value) {
            addCriterion("bflag <=", value, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagIn(List<Integer> values) {
            addCriterion("bflag in", values, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagNotIn(List<Integer> values) {
            addCriterion("bflag not in", values, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagBetween(Integer value1, Integer value2) {
            addCriterion("bflag between", value1, value2, "bflag");
            return (Criteria) this;
        }

        public Criteria andBflagNotBetween(Integer value1, Integer value2) {
            addCriterion("bflag not between", value1, value2, "bflag");
            return (Criteria) this;
        }

        public Criteria andBamountIsNull() {
            addCriterion("bamount is null");
            return (Criteria) this;
        }

        public Criteria andBamountIsNotNull() {
            addCriterion("bamount is not null");
            return (Criteria) this;
        }

        public Criteria andBamountEqualTo(Integer value) {
            addCriterion("bamount =", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountNotEqualTo(Integer value) {
            addCriterion("bamount <>", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountGreaterThan(Integer value) {
            addCriterion("bamount >", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountGreaterThanOrEqualTo(Integer value) {
            addCriterion("bamount >=", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountLessThan(Integer value) {
            addCriterion("bamount <", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountLessThanOrEqualTo(Integer value) {
            addCriterion("bamount <=", value, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountIn(List<Integer> values) {
            addCriterion("bamount in", values, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountNotIn(List<Integer> values) {
            addCriterion("bamount not in", values, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountBetween(Integer value1, Integer value2) {
            addCriterion("bamount between", value1, value2, "bamount");
            return (Criteria) this;
        }

        public Criteria andBamountNotBetween(Integer value1, Integer value2) {
            addCriterion("bamount not between", value1, value2, "bamount");
            return (Criteria) this;
        }

        public Criteria andBdateIsNull() {
            addCriterion("bdate is null");
            return (Criteria) this;
        }

        public Criteria andBdateIsNotNull() {
            addCriterion("bdate is not null");
            return (Criteria) this;
        }

        public Criteria andBdateEqualTo(String value) {
            addCriterion("bdate =", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateNotEqualTo(String value) {
            addCriterion("bdate <>", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateGreaterThan(String value) {
            addCriterion("bdate >", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateGreaterThanOrEqualTo(String value) {
            addCriterion("bdate >=", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateLessThan(String value) {
            addCriterion("bdate <", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateLessThanOrEqualTo(String value) {
            addCriterion("bdate <=", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateLike(String value) {
            addCriterion("bdate like", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateNotLike(String value) {
            addCriterion("bdate not like", value, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateIn(List<String> values) {
            addCriterion("bdate in", values, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateNotIn(List<String> values) {
            addCriterion("bdate not in", values, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateBetween(String value1, String value2) {
            addCriterion("bdate between", value1, value2, "bdate");
            return (Criteria) this;
        }

        public Criteria andBdateNotBetween(String value1, String value2) {
            addCriterion("bdate not between", value1, value2, "bdate");
            return (Criteria) this;
        }

        public Criteria andBpaytypeIsNull() {
            addCriterion("bPayType is null");
            return (Criteria) this;
        }

        public Criteria andBpaytypeIsNotNull() {
            addCriterion("bPayType is not null");
            return (Criteria) this;
        }

        public Criteria andBpaytypeEqualTo(String value) {
            addCriterion("bPayType =", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeNotEqualTo(String value) {
            addCriterion("bPayType <>", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeGreaterThan(String value) {
            addCriterion("bPayType >", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeGreaterThanOrEqualTo(String value) {
            addCriterion("bPayType >=", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeLessThan(String value) {
            addCriterion("bPayType <", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeLessThanOrEqualTo(String value) {
            addCriterion("bPayType <=", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeLike(String value) {
            addCriterion("bPayType like", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeNotLike(String value) {
            addCriterion("bPayType not like", value, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeIn(List<String> values) {
            addCriterion("bPayType in", values, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeNotIn(List<String> values) {
            addCriterion("bPayType not in", values, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeBetween(String value1, String value2) {
            addCriterion("bPayType between", value1, value2, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBpaytypeNotBetween(String value1, String value2) {
            addCriterion("bPayType not between", value1, value2, "bpaytype");
            return (Criteria) this;
        }

        public Criteria andBstateIsNull() {
            addCriterion("bstate is null");
            return (Criteria) this;
        }

        public Criteria andBstateIsNotNull() {
            addCriterion("bstate is not null");
            return (Criteria) this;
        }

        public Criteria andBstateEqualTo(Integer value) {
            addCriterion("bstate =", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateNotEqualTo(Integer value) {
            addCriterion("bstate <>", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateGreaterThan(Integer value) {
            addCriterion("bstate >", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("bstate >=", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateLessThan(Integer value) {
            addCriterion("bstate <", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateLessThanOrEqualTo(Integer value) {
            addCriterion("bstate <=", value, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateIn(List<Integer> values) {
            addCriterion("bstate in", values, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateNotIn(List<Integer> values) {
            addCriterion("bstate not in", values, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateBetween(Integer value1, Integer value2) {
            addCriterion("bstate between", value1, value2, "bstate");
            return (Criteria) this;
        }

        public Criteria andBstateNotBetween(Integer value1, Integer value2) {
            addCriterion("bstate not between", value1, value2, "bstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}